









const columnsAll = [
  {
    title: '客户姓名',
    key: 'customer_name',
    minWidth: 130,
    fixed: 'left',
    render: (h, params) => {
      return h('div',  params.row.customerName || '-');
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '客户姓名'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'input-customerName', '请输入客户姓名', 218);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '性别',
    key: 'gender',
    minWidth: 80,
    render: (h, params) => {
      return h('div',  params.row.gender || '-');
    }
  },
  {
    title: '手机号码',
    key: 'customer_phone',
    minWidth: 130,
    fixed: 'left',
    render: (h, params) => {
      return h('div',  this.$options.filters.mobilePhoneNumberFourAsterisk(params.row.customerPhone) || '-');
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '手机号码'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'input-phoneNumber-20', '请输入手机号码，不超过20个字符', 260);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '备用号码',
    key: 'standby_phone',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.standbyPhone
            }
          },
          params.row.standbyPhone
        )
      ]);
    }
  },
  {
    title: '微信号',
    key: 'wechat',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.wechat
            }
          },
          params.row.wechat
        )
      ]);
    }
  },
  {
    title: '来源渠道',
    key: 'channel_source',
    minWidth: 120,
    render: (h, params) => {
      return h('div', params.row.channelSource || '-');
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '来源渠道'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'SelectChannel-sourceChannelVal', '请选择来源渠道', 200);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '意向业态',
    key: 'intention_product',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.intentionProduct || '-');
    }
  },
  {
    title: '是否电转访',
    key: 'tel_change_visit',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.telChangeVisit || '-');
    }
  },
  {
    title: '意向等级',
    key: 'intention_level',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.intentionLevel || '-' );
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '意向等级'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'Select-customerLevelVal-customerLevelList', '请选择意向等级', 200);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '客户进度',
    key: 'status',
    minWidth: 120,
    render: (h, params) => {
      return h('div', (params.row.status || '-'));
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '客户进度'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'Select-customerProgressVal-customerProgressList', '请选择客户进度', 200);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '置业目的',
    key: 'intention_purpose',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionPurpose
            }
          },
          params.row.intentionPurpose || '-'
        )
      ]);
    }
  },
  {
    title: '意向户型',
    key: 'intention_house_type',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionHouseType
            }
          },
          params.row.intentionHouseType
        )
      ]);
    }
  },
  {
    title: '意向面积',
    key: 'intention_area',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionArea
            }
          },
          params.row.intentionArea
        )
      ]);
    }
  },
  {
    title: '意向总价',
    key: 'intention_total_price',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionTotalPrice
            }
          },
          params.row.intentionTotalPrice
        )
      ]);
    }
  },
  {
    title: '意向单价',
    key: 'intention_average_price',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionAveragePrice
            }
          },
          params.row.intentionAveragePrice
        )
      ]);
    }
  },
  {
    title: '意向区域',
    key: 'intention_region',
    minWidth: 140,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionRegion
            }
          },
          params.row.intentionRegion || '-'
        )
      ]);
    },
    renderHeader: (h, params) => {
      return h('div',[
        h('span', {}, '意向区域'),
        h('Icon', {
          props: {
            type: 'ios-arrow-down',
            size: '16'
          },
          style: {
            marginLeft: '5px'
          },
          nativeOn: {
            'mouseover': (event) => {
              event.stopPropagation();
              this.thMouseoverFun(event, 'SelectCity-areaVal-areaList', '请选择意向区域', 200);
            },
            'mouseleave': (event) => {
              event.stopPropagation();
              this.thMouseoutFun();
            }
          }
        })
      ])
    }
  },
  {
    title: '意向地铁',
    key: 'intention_subway',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionSubway
            }
          },
          params.row.intentionSubway
        )
      ]);
    }
  },
  {
    title: '意向环线',
    key: 'intention_loop_line',
    minWidth: 140,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.intentionLoopLine
            }
          },
          params.row.intentionLoopLine
        )
      ]);
    }
  },
  {
    title: '首付区间',
    key: 'down_payment_interval',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.downPaymentInterval || '-');
    },
  },
  {
    title: '付款比例',
    key: 'payment_ratio',
    minWidth: 110,
    render: (h, params) => {
      return h('div',  params.row.paymentRatio ? params.row.paymentRatio : '-');
    },
  },
  {
    title: '关注楼栋',
    key: 'attention_building',
    minWidth: 110,
    render: (h, params) => {
      return h('div',  params.row.attentionBuilding || '-');
    },
  },
  {
    title: '关注楼层',
    key: 'attention_floor',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.attentionFloor || '-');
    },
  },
  {
    title: '关注因素',
    key: 'attention_factor',
    minWidth: 160,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.attentionFactor
            }
          },
          params.row.attentionFactor || '-'
        )
      ]);
    }
  },
  {
    title: '抗性因素',
    key: 'resistance_points',
    minWidth: 120,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.resistancePoints
            }
          },
          params.row.resistancePoints || '-'
        )
      ]);
    }
  },
  {
    title: '来访人数',
    key: 'number_visiting',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.numberVisiting || '-');
    }
  },
  {
    title: '来访人员结构',
    key: 'visitor_structure',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.visitorStructure || '-');
    }
  },
  {
    title: '首访时间',
    key: 'his_first_time',
    minWidth: 160,
    render: (h, params) => {
      return h('div', params.row.hisFirstTime || '-');
    }
  },
  {
    title: '接待时长',
    key: 'reception_time',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.receptionTime || '-');
    }
  },
  {
    title: '客户年龄',
    key: 'age_range',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.ageRange || '-');
    }
  },
  {
    title: '购房积分',
    key: 'purchase_integral',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.purchaseIntegral || '-');
    }
  },
  {
    title: '付款方式',
    key: 'payment_type',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  this.$formatter.switchName("paymentType", params.row.paymentType )  || '-');
    }
  },
  {
    title: '近期婚史',
    key: 'history_marriage',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.historyMarriage || '-');
    }
  },
  {
    title: '户籍',
    key: 'census',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.census || '-');
    }
  },
  {
    title: '购房资质',
    key: 'buy_house_qualification',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.buyHouseQualification || '-');
    }
  },
  {
    title: '贷款资质',
    key: 'loans_qualification',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.loansQualification || '-');
    }
  },
  {
    title: '家庭结构',
    key: 'family_structure',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.familyStructure || '-');
    }
  },
  {
    title: '居住区域',
    key: 'living_area',
    minWidth: 120,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.livingArea
            }
          },
          params.row.livingArea || '-'
        )
      ]);
    }
  },
  {
    title: '工作区域',
    key: 'working_area',
    minWidth: 120,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.workingArea
            }
          },
          params.row.workingArea || '-'
        )
      ]);
    }
  },
  {
    title: '交通工具',
    key: 'vehicle',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.vehicle || '-');
    }
  },
  {
    title: '从事行业',
    key: 'industry',
    minWidth: 120,
    render: (h, params) => {
      return h("div", [
        h(
          "span",
          {
            style: {
              display: "inline-block",
              width: "100%",
              overflow: "hidden",
              textOverflow: "ellipsis",
              whiteSpace: "nowrap"
            },
            domProps: {
              title: params.row.industry
            }
          },
          params.row.industry || '-'
        )
      ]);
    }
  },
  {
    title: '职务职位',
    key: 'position',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.position || '-');
    }
  },
  {
    title: '学历',
    key: 'education_background',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.educationBackground || '-');
    }
  },
  {
    title: '资金来源',
    key: 'capital_source',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.capitalSource || '-');
    }
  },
  {
    title: '决策关键人',
    key: 'key_decision_maker',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.keyDecisionMaker || '-');
    }
  },
  {
    title: '现有房产套数',
    key: 'house_num',
    minWidth: 140,
    render: (h, params) => {
      return h('div',  params.row.houseNum || '-');
    }
  },
  {
    title: '客户特征',
    key: 'customer_feature',
    minWidth: 200,
    render(h,params){

      return h("div",{
    
        props:{
          // disabled:params.row.buildingId?false:true,
          type:'text'
        },
      }, [
        params.row.customerFeature?h('Poptip',
        {
          props: {
            placement: 'right',
            transfer:true,
            width:"380",
            trigger: "hover",
             popperClass:'N_poptip'
          },  
        },
        [
          h('span',{class:'featureZ'},params.row.customerFeature),
        
          h('div',{
            slot: 'content'
          },params.row.customerFeature)
          
        ]):h('span',params.row.customerFeature)
      ])
    }
  },
  {
    title: '置业计划发送',
    key: 'plan_is_send',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.planIsSend || '-');
    }
  },
  {
    title: '置业计划发送',
    key: 'plan_is_send',
    minWidth: 120,
    render: (h, params) => {
      return h('div',  params.row.planIsSend || '-');
    }
  },
  {
    title: '工作单位',
    key: 'work_unit',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.workUnit || '-');
    }
  },
  {
    title: '年收入',
    key: 'annual_income',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.annualIncome || '-');
    }
  },
  {
    title: '居住小区',
    key: 'now_live_house',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.nowLiveHouse || '-');
    }
  },
  {
    title: '置业次数',
    key: 'home_count',
    minWidth: 110,
    render: (h, params) => {
      return h('div', params.row.homeCount?params.row.homeCount+'次':'-');
    }
  },
]


export default {
  columnsAll: function(){
      return columnsAll
  }
}